package com.example.demo.service;

import com.example.demo.dao.testtableMapper;
import com.example.demo.entity.Testtable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class testImpl  implements test{

    @Autowired
    private testtableMapper testtableDao;
    @Override
    @Transactional
    public int save(Testtable testtable) {


       testtableDao.insert(testtable);
       int i= 1/0;
        return 1;
    }
}
